from qcloudsms_py import SmsSingleSender
from qcloudsms_py.httpclient import HTTPError

# 短信应用 SDK AppID
APPPID = 1400577893  # SDK AppID 以1400开头
# 短信应用 SDK AppKey
APPKEY = "95fef0f1ceeb0d707863f6a9fff50e39"

# 短信模板ID，需要在短信控制台中申请
TEMPLATE_ID = 1136132  # NOTE: 这里的模板 ID`7839` 只是示例，真实的模板 ID 需要在短信控制台中申请
# 签名
SMS_SIGN = "FTDCC公众号"



ssender = SmsSingleSender(APPPID, APPKEY)
params = ["5678"]  # 当模板没有参数时，`params = []`
result = ssender.send_with_param(86,"15206122927",
      TEMPLATE_ID, params, sign=SMS_SIGN, extend="", ext="")

print(result)
